package com.wuercloud.http.server;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * Created by JiangWL on 2017/2/28.
 */
@Configuration
public class HttpServerConfig {
    @Autowired
    private Environment environment;

    @Bean
    public HttpJsonServer httpJsonServer(){
        System.out.println(environment.getProperty("http.server")+" -- "+environment.getProperty("http.server.port"));
        return new HttpJsonServer();
    }
}
